<oc-dialog oc-dialog-switch="MS" oc-dialog-icon="role"
	oc-dialog-title="编辑角色">
	<div class="grid" ng-controller="RoleEdit">
		<fieldset class="oc-legend" style="top:0;left:.3rem;width:10.7rem;bottom:2rem">
			<legend>常规</legend>
			<label style="top:.5rem;left:.3rem" for="role-name">角色名称：</label>
			<input type="text" ng-model="role.name"
				style="top:1.5rem;left:.3rem;width:10rem" id="role-name">
			<label style="top:2.8rem;left:.3rem" for="role-comment">角色描述：</label>
			<textarea ng-model="role.comment"
				style="top:3.8rem;left:.3rem;width:10rem;max-width:10rem;
				max-height:3rem;height:3rem"
				id="role-comment"></textarea>
		</fieldset>
		<fieldset class="oc-legend" style="top:0;left:11.3rem;right:.3rem;bottom:2rem">
			<legend>权限</legend>

			<div class="oc-list"
				style="left:.3rem;right:.3rem;top:0.5rem;bottom:.3rem;border:1px solid #ccc">
				<header  class="oc-list-header" style="left:0">
					<label style="width: 120px;"
						title="数据对象">数据对象<hr></label>
					<label style="width: 90px;"
						title="操作">操作<hr></label>
				</header>
				<section class="oc-list-inner">
					<table>
						<thead>
							<tr>
								<th><div style="width: 120px;"></div></th>
								<th><div style="width: 90px;"></div></th>
							</tr>
						</thead>
						<tbody>
							<tr ng-repeat="(id, p) in privilege">
								<td><div><input type="checkbox"
									ng-model="privilegeChecked[id]" />{{p.module}}</div></td>
								<td><div>{{p.action}}</div></td>
							</tr>
						</tbody>
					</table>
				</section>
			</div>
		</fieldset>
		<button ng-click="fuck()"
			style="left:.3rem;width:4.3rem;height:1.4rem;bottom:.3rem">预设</button>
		<button ng-click="saveRole()"
			style="right:5rem;width:4.3rem;height:1.4rem;bottom:.3rem">确定</button>
		<button oc-dialog-close
			style="height:1.4rem;width:4.3rem;bottom:.3rem;right:.3rem">取消</button>
	</div>
</oc-dialog>
